{% load i18n %}

<div class="taxonomy-term">
    <div class="taxonomy-term-title">
        <h2>{{name}}</h2>
        <p>{{description}}</p>
    </div>
    <div class="taxonomy-term-children">
        {% if children %}
            <dl>
            {% for child in children %}
                <dt><a href='{{child.term.get_absolute_path}}'>{{child.name}}</a></dt>
                <dd>{{child.description}}</dd>
            {% endfor %}
            </dl>
        {% endif %}
    </div>
    {% if paginator and term.render_teasers %}
        <div class="taxonomy-term-instances">
            {% for instance in paginator.object_list %}
                <div class="taxonomy-term-instance">
                {% if instance.data.url %}
                    <h3><a href='{{instance.data.url}}'>{{instance.data.title}}</a></h3>
                {% else %}
                    <h3>{{instance.data.title}}</h3>
                {% endif %}
                <p>{{instance.data.description}}</p>
                {% if instance.data.url %}
                    <div class="taxonomy-term-read-more">
                        <a href='{{instance.data.url}}'>{% trans "Read More..." %}</a>
                    </div>
                {% endif %}
                </div>
            {% endfor %}
        </div>
        <div class="taxonomy-pagination">
            {% if paginator.has_previous %}
                <a href="?page={{paginator.previous_page_number}}">{% trans "Previous Page" %}</a>
            {% endif %}
                {% trans "Page" %} {{paginator.number}} {% trans "of" %} {{paginator.paginator.num_pages}}.
            {% if paginator.has_next %}
                <a href="?page={{paginator.next_page_number}}">{% trans "Next Page" %}</a>
            {% endif %}
        </div>
    {% endif %}
</div>

